package com.e3.sysmg.security.model;

import java.util.List;

import com.e3.web.core.model.SuperModel;

public class RoleModel extends SuperModel implements RoleFields{

	private static final long serialVersionUID = 6716969199887890107L;

	private String code;
	
	private String name;
	
	private String description;
	
	private List<RoleModel> parentRoles;
	
	private List<ModuleModel> authedModules;

	public String getCode() {
		return get(RoleModel.CODE);
	}

	public void setCode(String code) {
		set(RoleModel.CODE,code);
	}

	public String getName() {
		return get(RoleModel.NAME);
	}

	public void setName(String name) {
		set(RoleModel.NAME,name);
	}

	public String getDescription() {
		return get(RoleModel.DESCRIPTION);
	}

	public void setDescription(String description) {
		set(RoleModel.DESCRIPTION,description);
	}

	public List<RoleModel> getParentRoles() {
		return get(RoleModel.PARENT_ROLES);
	}

	public void setParentRoles(List<RoleModel> parentRoles) {
		set(RoleModel.PARENT_ROLES,parentRoles);
	}

	public List<ModuleModel> getAuthedModules() {
		return authedModules;
	}

	public void setAuthedModules(List<ModuleModel> authedModules) {
		this.authedModules = authedModules;
	}
}
